package com.yxuan.springboot.CustomizedException;

public class DefaultException extends Exception {

    public DefaultException() {
        super();
    }

    public DefaultException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public DefaultException(String message, Throwable cause) {
        super(message, cause);
    }

    public DefaultException(String message) {
        super(message);
    }

    public DefaultException(Throwable cause) {
        super(cause);
    }

    public static void main(String[] args) {
        try {
            throw new DefaultException("抛出自定义异常");
        } catch (Exception e) {
            System.out.println(e);
        }
    }
}